import request from '@/utils/request'
import { faceApiUrl } from '../config'

/*监测内容*/

/**
 * 监测内容列表
 * @param data
 */
export function getPageTechnicalMonitoringContentList(data){
  return request({
    url: `${faceApiUrl}/technicalMonitoringContent/queryTechnicalMonitoringContentList`,
    method: 'post',
    data
  })
} 

/**
 * 监测内容下拉
 * @param data
 */
 export function getdropDownChoice(data){
  return request({
    url: `${faceApiUrl}/technicalMonitoringContent/dropDownChoice`,
    method: 'post',
    data
  })
} 

/**
 * 添加监测内容
 * @param data
 */
 export function addMonitoring(data){
  return request({
    url: `${faceApiUrl}/technicalMonitoringContent/insertSelective`,
    method: 'post',
    data
  })
} 

/**
 * 更新监测内容
 * @param data
 */
 export function updateMonitoring(data){
  return request({
    url: `${faceApiUrl}//technicalMonitoringContent/updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
} 

/**
 * 删除监测内容
 * @param data
 */
 export function deleteMonitoring(data){
  return request({
    url: `${faceApiUrl}/technicalMonitoringContent/deleteByPrimaryKey?id=${data.id}`,
    method: 'post',
    data
  })
}

/**
 * 监测内容列表分页查询
 * @param data
 */
export function getPageTechnicalMonitoringContentFyList(data){
  return request({
    url: `${faceApiUrl}/technicalMonitoringContent/getPageTechnicalMonitoringContent`,
    method: 'post',
    data
  })
} 